package org.example.chapter3.pojo;

import org.example.chapter3.pojo.definition.Animal;
import org.springframework.stereotype.Component;

/**
 * @author CoderXshuai
 * @date 2020/7/5/0005 23:53
 */
@Component
public class Cat implements Animal {
    @Override
    public void use() {
        System.out.println("猫[" + Cat.class.getSimpleName() + "]是抓老鼠。");
    }
}
